﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <title>我的</title>
    <link rel="stylesheet" type="text/css" href="../plugins/weui/css/weui.min.css">
    <link rel="stylesheet" type="text/css" href="../css/base.css">
    <link rel="stylesheet" type="text/css" href="../css/css.css">
</head>
<style type="text/css">
body {background-color: #F3F3F3;width: 100%;overflow-x: hidden;}
.container{padding-bottom: 100px;}
.tabbar{position: fixed;bottom: 0;}
.card_box{width: 93%;background-color: #fff;border-radius: 3px;margin-top: 15px;margin-left: auto;margin-right: auto;}
.card_content{width: 90%;margin-left: auto;margin-right: auto;padding: 20px 0;}
.title{display:flex;flex-direction: row;justify-content: space-between;align-items: flex-start;}
.title span{overflow: hidden;text-overflow:ellipsis;white-space: nowrap; max-width:270px;}
.title img{width: 45px;height: 45px;}
.box-email{display: flex;flex-direction: row;justify-content: space-between;align-items: center;}
.box-email img{width: 20px;height: 20px;}
.editor{width: 15px;height: 15px;padding-left: 10px;}
.color_g{color: #666;padding-top: 5px;}
.card_desc{margin-top: 15px;}
</style>

<body>
    <div class="container">
        <div class="card_box">
        	<div class="card_content">
        		<div class="title" style="position:relative">
                    <img src="../images/avater_def.png" class="avater btn-editor" style="position:absolute; right:0px;">
	        		<div style="color: #666;"><span class="company" title="公司"></span></div>
	        	</div>
	        	<div class="card_desc">
	        		<h3 style="color: #676B91;"><span class="name" title="名字"></span><img class="editor btn-editor" src="../images/boss/13.png"></h3>              
	        		<p class="color_g f12"><span class="position" title="职位"></p>
	        		<p class="color_g f12">电话：<span class="phone" title="电话"></span></p>
	        		<div class="box-email">
	        			<span class="color_g f12">邮箱：<span class="email" title="邮箱"></span></span>
	        			<img src="../images/boss/14.png" class="a-card">
	        		</div>
	        	</div>
        	</div>
        </div>
        <div class="weui-panel__bd" style="margin-top: 15px;">
            <div class="weui-media-box weui-media-box_small-appmsg">
	            <div class="weui-cells">
	                <a class="weui-cell weui-cell_access" href="javascript:;">
	                    <div class="weui-cell__hd"><img src="../images/boss/mycard.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
	                    <div class="weui-cell__bd weui-cell_primary">
	                        <p class="f14 pl10 a-card">我的名片</p>
	                    </div>
	                    <span class="weui-cell__ft"></span>
	                </a>
	                <a class="weui-cell weui-cell_access" href="javascript:;">
	                    <div class="weui-cell__hd"><img src="../images/boss/card2.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
	                    <div class="weui-cell__bd weui-cell_primary">
	                        <p class="f14 pl10 a-tag">我的标签</p>
	                    </div>
	                    <span class="weui-cell__ft"></span>
	                </a>
                    <a class="weui-cell weui-cell_access" href="javascript:;">
                        <div class="weui-cell__hd"><img src="../images/boss/card3.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
                        <div class="weui-cell__bd weui-cell_primary">
                            <p class="f14 pl10 a-sign">个性签名</p>
                        </div>
                        <span class="weui-cell__ft"></span>
                    </a>
	            </div>
            </div>
        </div>
 
        <div class="weui-panel__bd" style="margin-top: 15px;">
            <div class="weui-media-box weui-media-box_small-appmsg">
	            <div class="weui-cells">
	                <a class="weui-cell weui-cell_access" href="javascript:;">
	                    <div class="weui-cell__hd"><img src="../images/boss/card6.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
	                    <div class="weui-cell__bd weui-cell_primary">
	                        <p class="f14 pl10">我的商城</p>
	                    </div>
	                    <span class="weui-cell__ft"></span>
	                </a>
	                <a class="weui-cell weui-cell_access" href="javascript:;">
	                    <div class="weui-cell__hd"><img src="../images/boss/card7.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
	                    <div class="weui-cell__bd weui-cell_primary">
	                        <p class="f14 pl10 a-blog">我的商圈</p>
	                    </div>
	                    <span class="weui-cell__ft"></span>
	                </a>                    
	                <a class="weui-cell weui-cell_access" href="javascript:;">
	                    <div class="weui-cell__hd"><img src="../images/boss/card8.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
	                    <div class="weui-cell__bd weui-cell_primary">
	                        <p class="f14 pl10 a-report">我的报表</p>
	                    </div>
	                    <span class="weui-cell__ft"></span>
	                </a>
                    <a class="weui-cell weui-cell_access boss-box" href="javascript:;" style="display:none;">
                        <div class="weui-cell__hd"><img src="../images/boss/card9.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
                        <div class="weui-cell__bd weui-cell_primary">
                            <p class="f14 pl10 a-boss">boss销售</p>
                        </div>
                        <span class="weui-cell__ft"></span>
                    </a>
	            </div>
            </div>
        </div>
        <div class="weui-panel__bd" style="margin-top: 15px;">
            <div class="weui-media-box weui-media-box_small-appmsg">
	            <div class="weui-cells">
	            
	                <a class="weui-cell weui-cell_access" href="javascript:;">
	                    <div class="weui-cell__hd"><img src="../images/boss/card10.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
	                    <div class="weui-cell__bd weui-cell_primary">
	                        <p class="f14 pl10 a-feedback">意见反馈</p>
	                    </div>
	                    <span class="weui-cell__ft"></span>
	                </a>
	                <a class="weui-cell weui-cell_access" href="javascript:;">
	                    <div class="weui-cell__hd"><img src="../images/boss/card11.png" alt="" style="width:20px;margin-right:5px;display:block"></div>
	                    <div class="weui-cell__bd weui-cell_primary">
	                        <p class="f14 pl10 a-setting">消息设置</p>
	                    </div>
	                    <span class="weui-cell__ft"></span>
	                </a>
	            </div>
            </div>
        </div>
    </div>
    <div class="weui-tabbar tabbar">
        <a href="bossRadarIndex.html" class="weui-tabbar__item">
            <img src="../images/tabbar/10.png" alt="" class="weui-tabbar__icon">
            <p class="weui-tabbar__label">AI销售</p>
        </a>
        <a class="weui-tabbar__item a_msg_list">
            <img src="../images/tabbar/12.png" alt="" class="weui-tabbar__icon">
            <p class="weui-tabbar__label">消息</p>
        </a>
        <a href="contactPerson.html" class="weui-tabbar__item">
            <img src="../images/tabbar/14.png" alt="" class="weui-tabbar__icon">
            <p class="weui-tabbar__label">客户</p>
        </a>
        <a href="friendState.html"  class="weui-tabbar__item">
            <img src="../images/tabbar/16.png" alt="" class="weui-tabbar__icon">
            <p class="weui-tabbar__label">商圈</p>
        </a>
        <a href="javascript:;" class="weui-tabbar__item">
            <img src="../images/tabbar/17.png" alt="" class="weui-tabbar__icon">
            <p class="weui-tabbar__label" style="color:#FD4D01;">我</p>
        </a>
    </div>
    <script src="../js/jquery-2.1.4.min.js"></script>
    <script src="../js/base.js"></script>

    <script>
        $(function () {
            loadStaff();
            loadBtn();
          
        })
        function loadStaff() {
            ajaxGet(siteApiList.GetInfo + "?id=" + staffId, function (data) {
                if (!isJsonSuccess(data))
                    return;

                var item = data.Data;
                $(".avater").attr("src", siteConfig.formatAvater(item.Avater));
                $(".company").html(item.Company)
                $(".department").html(item.Department)
                $(".email").html(item.Email)
                $(".mobile").html(item.Mobile)
                $(".name").html(item.Name)
                $(".position").html(item.Position)
                $(".phone").html(item.Mobile)
                uid = item.Uid;
                loadBtn(uid);
                if (item.BossState != null && item.BossState == 1)
                    $(".boss-box").show();  //boss销售
            })
        }

        function loadBtn(uid) {
            $(".a-tag").click(function () { toUrl(siteUrlList.StafTag) });
            $(".a-card").click(function () { toUrl(siteUrlList.MyCard + "?staffid=" + staffId) });
            $(".a-sign").click(function () { toUrl(siteUrlList.MySign) });
            $(".a-report").click(function () { toUrl(siteUrlList.MyReport + "?staffid=" + staffId) });
            $(".a-blog").click(function () { toUrl(siteUrlList.MyBlog) });
            $(".a-setting").click(function () { toUrl(siteUrlList.Setting) });
            $(".a-feedback").click(function () { toUrl(siteUrlList.Feedback+"?uid="+uid) });
            $(".btn-editor").click(function () { toUrl(siteUrlList.EditInfo) });
            $(".a-setting").click(function () { toUrl(siteUrlList.Setting + "?staffid=" + staffId) });
            $(".a-boss").click(function () { toUrl("bossRadar.html") })

            //聊天会话链接
            $(".a_msg_list").click(function () {
                toUrl(siteUrlList.ImMessageList + "?uid=" + userid);
            });

        }

       
    </script>
</body>
</html>